<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文章列表 - 知识分享平台</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#2563eb',
                        secondary: '#64748b',
                        accent: '#f97316',
                        light: '#f8fafc',
                        dark: '#0f172a'
                    },
                    fontFamily: {
                        sans: ['Inter', 'system-ui', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .card-hover {
                @apply transition-all duration-300 hover:shadow-lg hover:-translate-y-1;
            }
            .btn-primary {
                @apply bg-primary text-white px-4 py-2 rounded-md hover:bg-primary/90 transition-colors;
            }
            .btn-outline {
                @apply border border-gray-300 text-gray-700 px-4 py-2 rounded-md hover:bg-gray-50 transition-colors;
            }
            .badge {
                @apply px-2 py-1 text-xs rounded-full;
            }
        }
    </style>
</head>
<body class="bg-gray-50 font-sans text-gray-800">
    <!-- 顶部导航栏 -->
    <header class="bg-white shadow-sm sticky top-0 z-50">
        <div class="container mx-auto px-4">
            <div class="flex justify-between items-center h-16">
                <!-- 网站Logo -->
                <div class="flex items-center">
                    <a href="#" class="text-2xl font-bold text-primary flex items-center">
                        <i class="fa fa-book mr-2"></i>
                        <span>知享</span>
                    </a>
                </div>
                
                <!-- 主导航 - 桌面端 -->
                <nav class="hidden md:flex space-x-8">
                    <a href="#" class="text-primary font-medium border-b-2 border-primary px-1 py-5">文章</a>
                    <a href="#" class="text-gray-600 hover:text-primary transition-colors px-1 py-5">专栏</a>
                    <a href="#" class="text-gray-600 hover:text-primary transition-colors px-1 py-5">作者</a>
                    <a href="#" class="text-gray-600 hover:text-primary transition-colors px-1 py-5">话题</a>
                    <a href="#" class="text-gray-600 hover:text-primary transition-colors px-1 py-5">活动</a>
                </nav>
                
                <!-- 用户操作区 -->
                <div class="flex items-center space-x-4">
                    <button class="text-gray-600 hover:text-primary transition-colors">
                        <i class="fa fa-bell-o text-xl"></i>
                    </button>
                    <div class="relative">
                        <img src="https://picsum.photos/id/1005/200/200" alt="用户头像" class="w-8 h-8 rounded-full object-cover border-2 border-white cursor-pointer">
                    </div>
                    <!-- 移动端菜单按钮 -->
                    <button id="mobile-menu-btn" class="md:hidden text-gray-600">
                        <i class="fa fa-bars text-xl"></i>
                    </button>
                </div>
            </div>
            
            <!-- 移动端导航菜单 -->
            <div id="mobile-menu" class="md:hidden hidden pb-4">
                <nav class="flex flex-col space-y-3">
                    <a href="#" class="text-primary font-medium px-2 py-2">文章</a>
                    <a href="#" class="text-gray-600 hover:text-primary transition-colors px-2 py-2">专栏</a>
                    <a href="#" class="text-gray-600 hover:text-primary transition-colors px-2 py-2">作者</a>
                    <a href="#" class="text-gray-600 hover:text-primary transition-colors px-2 py-2">话题</a>
                    <a href="#" class="text-gray-600 hover:text-primary transition-colors px-2 py-2">活动</a>
                </nav>
            </div>
        </div>
    </header>

    <!-- 主内容区 -->
    <main class="container mx-auto px-4 py-8">
        <!-- 页面标题 -->
        <div class="mb-8">
            <h1 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold text-gray-900">发现优质文章</h1>
            <p class="text-gray-600 mt-2">探索来自各领域专家的深度内容，拓宽你的知识边界</p>
        </div>
        
        <!-- 搜索栏 -->
        <section class="mb-8">
            <div class="relative max-w-3xl">
                <input 
                    type="text" 
                    placeholder="搜索文章、作者或话题..." 
                    class="w-full pl-10 pr-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all"
                >
                <button class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-primary transition-colors">
                    <i class="fa fa-search text-lg"></i>
                </button>
                <button class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-primary transition-colors">
                    <i class="fa fa-filter text-lg"></i>
                </button>
            </div>
        </section>
        
        <div class="flex flex-col lg:flex-row gap-8">
            <!-- 左侧文章列表区 -->
            <div class="lg:w-3/4">
                <!-- 筛选和排序工具栏 -->
                <section class="bg-white rounded-xl shadow-sm p-4 mb-6">
                    <div class="flex flex-wrap items-center justify-between gap-4">
                        <!-- 视图切换 -->
                        <div class="flex items-center border rounded-md overflow-hidden">
                            <button id="card-view-btn" class="px-3 py-2 bg-primary text-white">
                                <i class="fa fa-th-large"></i>
                            </button>
                            <button id="list-view-btn" class="px-3 py-2 bg-gray-100 text-gray-600 hover:bg-gray-200 transition-colors">
                                <i class="fa fa-list"></i>
                            </button>
                        </div>
                        
                        <!-- 排序选项 -->
                        <div class="flex items-center gap-4">
                            <span class="text-sm text-gray-500">排序：</span>
                            <select class="border border-gray-300 rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary">
                                <option>最新发布</option>
                                <option>最多阅读</option>
                                <option>最多点赞</option>
                                <option>最多评论</option>
                            </select>
                        </div>
                        
                        <!-- 分类筛选 -->
                        <div class="flex items-center gap-4">
                            <span class="text-sm text-gray-500">分类：</span>
                            <select class="border border-gray-300 rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary">
                                <option value="">全部分类</option>
                                <option value="tech">科技</option>
                                <option value="business">商业</option>
                                <option value="culture">文化</option>
                                <option value="health">健康</option>
                                <option value="education">教育</option>
                            </select>
                        </div>
                    </div>
                </section>
                
                <!-- 文章列表 - 卡片视图 -->
                <section id="article-container" class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
                    <!-- 文章卡片 1 -->
                    <article class="bg-white rounded-xl shadow-sm overflow-hidden card-hover">
                        <div class="relative">
                            <img src="https://picsum.photos/id/20/600/400" alt="人工智能如何改变未来工作" class="w-full h-48 object-cover">
                            <span class="absolute top-3 left-3 badge bg-primary text-white">科技</span>
                        </div>
                        <div class="p-5">
                            <h3 class="font-bold text-lg mb-2 line-clamp-2">
                                <a href="#" class="hover:text-primary transition-colors">人工智能如何改变未来工作：机遇与挑战</a>
                            </h3>
                            <p class="text-gray-600 text-sm mb-4 line-clamp-2">
                                随着AI技术的快速发展，未来的工作模式将发生根本性变化。本文探讨了AI带来的机遇与挑战，以及我们应该如何应对。
                            </p>
                            <div class="flex items-center justify-between">
                                <div class="flex items-center">
                                    <img src="https://picsum.photos/id/1001/100/100" alt="李教授" class="w-8 h-8 rounded-full object-cover">
                                    <span class="ml-2 text-sm text-gray-600">李教授</span>
                                </div>
                                <div class="flex items-center text-sm text-gray-500">
                                    <span class="flex items-center mr-3">
                                        <i class="fa fa-eye mr-1"></i> 2.4k
                                    </span>
                                    <span class="flex items-center">
                                        <i class="fa fa-calendar-o mr-1"></i> 3天前
                                    </span>
                                </div>
                            </div>
                        </div>
                    </article>
                    
                    <!-- 文章卡片 2 -->
                    <article class="bg-white rounded-xl shadow-sm overflow-hidden card-hover">
                        <div class="relative">
                            <img src="https://picsum.photos/id/26/600/400" alt="远程工作效率提升指南" class="w-full h-48 object-cover">
                            <span class="absolute top-3 left-3 badge bg-green-500 text-white">职场</span>
                        </div>
                        <div class="p-5">
                            <h3 class="font-bold text-lg mb-2 line-clamp-2">
                                <a href="#" class="hover:text-primary transition-colors">远程工作效率提升指南：5个实用技巧</a>
                            </h3>
                            <p class="text-gray-600 text-sm mb-4 line-clamp-2">
                                远程工作已成为新常态，但许多人仍在适应这种工作模式。本文分享了5个经过验证的技巧，帮助你提高远程工作效率。
                            </p>
                            <div class="flex items-center justify-between">
                                <div class="flex items-center">
                                    <img src="https://picsum.photos/id/1002/100/100" alt="张经理" class="w-8 h-8 rounded-full object-cover">
                                    <span class="ml-2 text-sm text-gray-600">张经理</span>
                                </div>
                                <div class="flex items-center text-sm text-gray-500">
                                    <span class="flex items-center mr-3">
                                        <i class="fa fa-eye mr-1"></i> 1.8k
                                    </span>
                                    <span class="flex items-center">
                                        <i class="fa fa-calendar-o mr-1"></i> 5天前
                                    </span>
                                </div>
                            </div>
                        </div>
                    </article>
                    
                    <!-- 文章卡片 3 -->
                    <article class="bg-white rounded-xl shadow-sm overflow-hidden card-hover">
                        <div class="relative">
                            <img src="https://picsum.photos/id/96/600/400" alt="健康饮食与免疫力" class="w-full h-48 object-cover">
                            <span class="absolute top-3 left-3 badge bg-red-500 text-white">健康</span>
                        </div>
                        <div class="p-5">
                            <h3 class="font-bold text-lg mb-2 line-clamp-2">
                                <a href="#" class="hover:text-primary transition-colors">健康饮食与免疫力：科学饮食提升抵抗力</a>
                            </h3>
                            <p class="text-gray-600 text-sm mb-4 line-clamp-2">
                                免疫系统是身体抵御疾病的天然屏障，而饮食在维持免疫系统健康方面起着关键作用。本文介绍了增强免疫力的饮食原则。
                            </p>
                            <div class="flex items-center justify-between">
                                <div class="flex items-center">
                                    <img src="https://picsum.photos/id/1003/100/100" alt="王医生" class="w-8 h-8 rounded-full object-cover">
                                    <span class="ml-2 text-sm text-gray-600">王医生</span>
                                </div>
                                <div class="flex items-center text-sm text-gray-500">
                                    <span class="flex items-center mr-3">
                                        <i class="fa fa-eye mr-1"></i> 3.2k
                                    </span>
                                    <span class="flex items-center">
                                        <i class="fa fa-calendar-o mr-1"></i> 1周前
                                    </span>
                                </div>
                            </div>
                        </div>
                    </article>
                    
                    <!-- 文章卡片 4 -->
                    <article class="bg-white rounded-xl shadow-sm overflow-hidden card-hover">
                        <div class="relative">
                            <img src="https://picsum.photos/id/60/600/400" alt="投资与理财入门" class="w-full h-48 object-cover">
                            <span class="absolute top-3 left-3 badge bg-yellow-500 text-white">财经</span>
                        </div>
                        <div class="p-5">
                            <h3 class="font-bold text-lg mb-2 line-clamp-2">
                                <a href="#" class="hover:text-primary transition-colors">投资与理财入门：年轻人的第一堂理财课</a>
                            </h3>
                            <p class="text-gray-600 text-sm mb-4 line-clamp-2">
                                理财不是富人的专利，而是每个人都应该掌握的技能。本文为年轻人提供了实用的理财入门知识，帮助你规划财务未来。
                            </p>
                            <div class="flex items-center justify-between">
                                <div class="flex items-center">
                                    <img src="https://picsum.photos/id/1004/100/100" alt="刘顾问" class="w-8 h-8 rounded-full object-cover">
                                    <span class="ml-2 text-sm text-gray-600">刘顾问</span>
                                </div>
                                <div class="flex items-center text-sm text-gray-500">
                                    <span class="flex items-center mr-3">
                                        <i class="fa fa-eye mr-1"></i> 2.7k
                                    </span>
                                    <span class="flex items-center">
                                        <i class="fa fa-calendar-o mr-1"></i> 2周前
                                    </span>
                                </div>
                            </div>
                        </div>
                    </article>
                    
                    <!-- 文章卡片 5 -->
                    <article class="bg-white rounded-xl shadow-sm overflow-hidden card-hover">
                        <div class="relative">
                            <img src="https://picsum.photos/id/42/600/400" alt="古典文学的现代意义" class="w-full h-48 object-cover">
                            <span class="absolute top-3 left-3 badge bg-purple-500 text-white">文化</span>
                        </div>
                        <div class="p-5">
                            <h3 class="font-bold text-lg mb-2 line-clamp-2">
                                <a href="#" class="hover:text-primary transition-colors">古典文学的现代意义：跨越时空的智慧</a>
                            </h3>
                            <p class="text-gray-600 text-sm mb-4 line-clamp-2">
                                古典文学不仅是文化遗产，更蕴含着适用于现代生活的智慧。本文探讨了古典文学在当代社会中的价值和意义。
                            </p>
                            <div class="flex items-center justify-between">
                                <div class="flex items-center">
                                    <img src="https://picsum.photos/id/1006/100/100" alt="陈教授" class="w-8 h-8 rounded-full object-cover">
                                    <span class="ml-2 text-sm text-gray-600">陈教授</span>
                                </div>
                                <div class="flex items-center text-sm text-gray-500">
                                    <span class="flex items-center mr-3">
                                        <i class="fa fa-eye mr-1"></i> 1.5k
                                    </span>
                                    <span class="flex items-center">
                                        <i class="fa fa-calendar-o mr-1"></i> 2周前
                                    </span>
                                </div>
                            </div>
                        </div>
                    </article>
                    
                    <!-- 文章卡片 6 -->
                    <article class="bg-white rounded-xl shadow-sm overflow-hidden card-hover">
                        <div class="relative">
                            <img src="https://picsum.photos/id/180/600/400" alt="教育方式的变革" class="w-full h-48 object-cover">
                            <span class="absolute top-3 left-3 badge bg-indigo-500 text-white">教育</span>
                        </div>
                        <div class="p-5">
                            <h3 class="font-bold text-lg mb-2 line-clamp-2">
                                <a href="#" class="hover:text-primary transition-colors">教育方式的变革：从传统到个性化学习</a>
                            </h3>
                            <p class="text-gray-600 text-sm mb-4 line-clamp-2">
                                教育正在经历前所未有的变革，个性化学习成为新趋势。本文分析了教育模式的转变及其对学生发展的影响。
                            </p>
                            <div class="flex items-center justify-between">
                                <div class="flex items-center">
                                    <img src="https://picsum.photos/id/1008/100/100" alt="赵老师" class="w-8 h-8 rounded-full object-cover">
                                    <span class="ml-2 text-sm text-gray-600">赵老师</span>
                                </div>
                                <div class="flex items-center text-sm text-gray-500">
                                    <span class="flex items-center mr-3">
                                        <i class="fa fa-eye mr-1"></i> 2.1k
                                    </span>
                                    <span class="flex items-center">
                                        <i class="fa fa-calendar-o mr-1"></i> 3周前
                                    </span>
                                </div>
                            </div>
                        </div>
                    </article>
                </section>
                
                <!-- 分页 -->
                <section class="flex justify-center mb-8">
                    <nav class="inline-flex rounded-md shadow-sm">
                        <a href="#" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
                            <i class="fa fa-chevron-left"></i>
                        </a>
                        <a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-primary text-sm font-medium text-white">
                            1
                        </a>
                        <a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50">
                            2
                        </a>
                        <a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50">
                            3
                        </a>
                        <span class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700">
                            ...
                        </span>
                        <a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50">
                            8
                        </a>
                        <a href="#" class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
                            <i class="fa fa-chevron-right"></i>
                        </a>
                    </nav>
                </section>
                
                <!-- 推荐文章 -->
                <section class="mb-8">
                    <h2 class="text-xl font-bold mb-6 flex items-center">
                        <i class="fa fa-star text-yellow-400 mr-2"></i> 为你推荐
                    </h2>
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
                        <a href="#" class="group bg-white rounded-lg shadow-sm p-4 card-hover">
                            <h3 class="font-medium text-gray-900 group-hover:text-primary transition-colors line-clamp-2">
                                如何培养持续学习的习惯：终身学习者的实践指南
                            </h3>
                            <p class="text-sm text-gray-500 mt-2">
                                <i class="fa fa-user-o mr-1"></i> 林学者
                            </p>
                        </a>
                        <a href="#" class="group bg-white rounded-lg shadow-sm p-4 card-hover">
                            <h3 class="font-medium text-gray-900 group-hover:text-primary transition-colors line-clamp-2">
                                情绪管理：掌控情绪而非被情绪掌控的心理学方法
                            </h3>
                            <p class="text-sm text-gray-500 mt-2">
                                <i class="fa fa-user-o mr-1"></i> 孙心理师
                            </p>
                        </a>
                        <a href="#" class="group bg-white rounded-lg shadow-sm p-4 card-hover">
                            <h3 class="font-medium text-gray-900 group-hover:text-primary transition-colors line-clamp-2">
                                城市园艺：在都市生活中打造自己的绿色空间
                            </h3>
                            <p class="text-sm text-gray-500 mt-2">
                                <i class="fa fa-user-o mr-1"></i> 郑园丁
                            </p>
                        </a>
                    </div>
                </section>
            </div>
            
            <!-- 右侧边栏 -->
            <div class="lg:w-1/4 space-y-6">
                <!-- 分类导航 -->
                <section class="bg-white rounded-xl shadow-sm p-5">
                    <h3 class="font-bold text-lg mb-4">文章分类</h3>
                    <ul class="space-y-2">
                        <li>
                            <a href="#" class="flex items-center justify-between py-2 text-primary font-medium">
                                <span class="flex items-center">
                                    <i class="fa fa-globe w-5 text-center mr-2"></i>
                                    全部文章
                                </span>
                                <span class="badge bg-primary/10 text-primary">2,451</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="flex items-center justify-between py-2 text-gray-600 hover:text-primary transition-colors">
                                <span class="flex items-center">
                                    <i class="fa fa-microchip w-5 text-center mr-2"></i>
                                    科技
                                </span>
                                <span class="badge bg-gray-100 text-gray-600">542</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="flex items-center justify-between py-2 text-gray-600 hover:text-primary transition-colors">
                                <span class="flex items-center">
                                    <i class="fa fa-briefcase w-5 text-center mr-2"></i>
                                    商业
                                </span>
                                <span class="badge bg-gray-100 text-gray-600">387</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="flex items-center justify-between py-2 text-gray-600 hover:text-primary transition-colors">
                                <span class="flex items-center">
                                    <i class="fa fa-heartbeat w-5 text-center mr-2"></i>
                                    健康
                                </span>
                                <span class="badge bg-gray-100 text-gray-600">412</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="flex items-center justify-between py-2 text-gray-600 hover:text-primary transition-colors">
                                <span class="flex items-center">
                                    <i class="fa fa-book w-5 text-center mr-2"></i>
                                    文化
                                </span>
                                <span class="badge bg-gray-100 text-gray-600">328</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="flex items-center justify-between py-2 text-gray-600 hover:text-primary transition-colors">
                                <span class="flex items-center">
                                    <i class="fa fa-graduation-cap w-5 text-center mr-2"></i>
                                    教育
                                </span>
                                <span class="badge bg-gray-100 text-gray-600">296</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="flex items-center justify-between py-2 text-gray-600 hover:text-primary transition-colors">
                                <span class="flex items-center">
                                    <i class="fa fa-money w-5 text-center mr-2"></i>
                                    财经
                                </span>
                                <span class="badge bg-gray-100 text-gray-600">486</span>
                            </a>
                        </li>
                    </ul>
                </section>
                
                <!-- 热门标签 -->
                <section class="bg-white rounded-xl shadow-sm p-5">
                    <h3 class="font-bold text-lg mb-4">热门标签</h3>
                    <div class="flex flex-wrap gap-2">
                        <a href="#" class="px-3 py-1 bg-blue-50 text-primary text-sm rounded-full hover:bg-blue-100 transition-colors">#人工智能</a>
                        <a href="#" class="px-3 py-1 bg-gray-100 text-gray-700 text-sm rounded-full hover:bg-gray-200 transition-colors">#远程工作</a>
                        <a href="#" class="px-3 py-1 bg-gray-100 text-gray-700 text-sm rounded-full hover:bg-gray-200 transition-colors">#健康饮食</a>
                        <a href="#" class="px-3 py-1 bg-gray-100 text-gray-700 text-sm rounded-full hover:bg-gray-200 transition-colors">#投资理财</a>
                        <a href="#" class="px-3 py-1 bg-gray-100 text-gray-700 text-sm rounded-full hover:bg-gray-200 transition-colors">#古典文学</a>
                        <a href="#" class="px-3 py-1 bg-gray-100 text-gray-700 text-sm rounded-full hover:bg-gray-200 transition-colors">#在线教育</a>
                        <a href="#" class="px-3 py-1 bg-gray-100 text-gray-700 text-sm rounded-full hover:bg-gray-200 transition-colors">#情绪管理</a>
                        <a href="#" class="px-3 py-1 bg-gray-100 text-gray-700 text-sm rounded-full hover:bg-gray-200 transition-colors">#可持续发展</a>
                        <a href="#" class="px-3 py-1 bg-gray-100 text-gray-700 text-sm rounded-full hover:bg-gray-200 transition-colors">#创业经验</a>
                        <a href="#" class="px-3 py-1 bg-gray-100 text-gray-700 text-sm rounded-full hover:bg-gray-200 transition-colors">#旅行攻略</a>
                        <a href="#" class="px-3 py-1 bg-gray-100 text-gray-700 text-sm rounded-full hover:bg-gray-200 transition-colors">#摄影技巧</a>
                        <a href="#" class="px-3 py-1 bg-gray-100 text-gray-700 text-sm rounded-full hover:bg-gray-200 transition-colors">#人际关系</a>
                    </div>
                </section>
                
                <!-- 热门作者 -->
                <section class="bg-white rounded-xl shadow-sm p-5">
                    <h3 class="font-bold text-lg mb-4">热门作者</h3>
                    <div class="space-y-4">
                        <div class="flex items-center">
                            <img src="https://picsum.photos/id/1012/100/100" alt="刘教授" class="w-12 h-12 rounded-full object-cover">
                            <div class="ml-3 flex-1">
                                <h4 class="font-medium text-gray-900">刘教授</h4>
                                <p class="text-xs text-gray-500">科技专栏 · 12.5k 粉丝</p>
                            </div>
                            <button class="text-sm text-primary border border-primary px-3 py-1 rounded-full hover:bg-primary/5 transition-colors">
                                关注
                            </button>
                        </div>
                        <div class="flex items-center">
                            <img src="https://picsum.photos/id/1027/100/100" alt="张医生" class="w-12 h-12 rounded-full object-cover">
                            <div class="ml-3 flex-1">
                                <h4 class="font-medium text-gray-900">张医生</h4>
                                <p class="text-xs text-gray-500">健康专栏 · 9.8k 粉丝</p>
                            </div>
                            <button class="text-sm text-primary border border-primary px-3 py-1 rounded-full hover:bg-primary/5 transition-colors">
                                关注
                            </button>
                        </div>
                        <div class="flex items-center">
                            <img src="https://picsum.photos/id/1025/100/100" alt="王老师" class="w-12 h-12 rounded-full object-cover">
                            <div class="ml-3 flex-1">
                                <h4 class="font-medium text-gray-900">王老师</h4>
                                <p class="text-xs text-gray-500">教育专栏 · 8.3k 粉丝</p>
                            </div>
                            <button class="text-sm bg-gray-100 text-gray-600 px-3 py-1 rounded-full hover:bg-gray-200 transition-colors">
                                已关注
                            </button>
                        </div>
                    </div>
                    <a href="#" class="block text-center text-primary text-sm mt-4 hover:underline">
                        查看更多作者
                    </a>
                </section>
                
                <!-- 订阅区域 -->
                <section class="bg-gradient-to-br from-primary to-blue-700 rounded-xl shadow-sm p-5 text-white">
                    <h3 class="font-bold text-lg mb-2">订阅文章推送</h3>
                    <p class="text-blue-100 text-sm mb-4">
                        及时获取最新文章和精选内容，直接发送到你的邮箱
                    </p>
                    <form class="space-y-3">
                        <input 
                            type="email" 
                            placeholder="输入你的邮箱地址" 
                            class="w-full px-4 py-2 rounded-lg text-gray-800 focus:outline-none focus:ring-2 focus:ring-white"
                        >
                        <button type="submit" class="w-full bg-white text-primary font-medium py-2 rounded-lg hover:bg-blue-50 transition-colors">
                            立即订阅
                        </button>
                    </form>
                    <p class="text-xs text-blue-200 mt-3 text-center">
                        我们尊重你的隐私，不会向第三方分享你的信息
                    </p>
                </section>
            </div>
        </div>
    </main>

    <!-- 页脚 -->
    <footer class="bg-gray-900 text-gray-400 py-12">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                <div>
                    <div class="text-white text-xl font-bold flex items-center mb-4">
                        <i class="fa fa-book mr-2"></i>
                        <span>知享</span>
                    </div>
                    <p class="text-sm mb-4">
                        知享是一个专注于知识分享的平台，汇聚各领域专家，分享有价值的见解和经验。
                    </p>
                    <div class="flex space-x-4">
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-weibo"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-wechat"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-twitter"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-linkedin"></i>
                        </a>
                    </div>
                </div>
                
                <div>
                    <h4 class="text-white font-medium mb-4">内容分类</h4>
                    <ul class="space-y-2 text-sm">
                        <li><a href="#" class="hover:text-white transition-colors">科技</a></li>
                        <li><a href="#" class="hover:text-white transition-colors">商业</a></li>
                        <li><a href="#" class="hover:text-white transition-colors">健康</a></li>
                        <li><a href="#" class="hover:text-white transition-colors">文化</a></li>
                        <li><a href="#" class="hover:text-white transition-colors">教育</a></li>
                        <li><a href="#" class="hover:text-white transition-colors">财经</a></li>
                    </ul>
                </div>
                
                <div>
                    <h4 class="text-white font-medium mb-4">关于我们</h4>
                    <ul class="space-y-2 text-sm">
                        <li><a href="#" class="hover:text-white transition-colors">平台介绍</a></li>
                        <li><a href="#" class="hover:text-white transition-colors">加入我们</a></li>
                        <li><a href="#" class="hover:text-white transition-colors">内容合作</a></li>
                        <li><a href="#" class="hover:text-white transition-colors">用户反馈</a></li>
                        <li><a href="#" class="hover:text-white transition-colors">联系我们</a></li>
                    </ul>
                </div>
                
                <div>
                    <h4 class="text-white font-medium mb-4">法律信息</h4>
                    <ul class="space-y-2 text-sm">
                        <li><a href="#" class="hover:text-white transition-colors">隐私政策</a></li>
                        <li><a href="#" class="hover:text-white transition-colors">用户协议</a></li>
                        <li><a href="#" class="hover:text-white transition-colors">版权声明</a></li>
                        <li><a href="#" class="hover:text-white transition-colors">免责条款</a></li>
                    </ul>
                    <div class="mt-6 text-xs">
                        <p>© 2023 知享平台 版权所有</p>
                        <p class="mt-1">京ICP备12345678号</p>
                    </div>
                </div>
            </div>
        </div>
    </footer>

    <script>
        // 移动端菜单切换
        const mobileMenuBtn = document.getElementById('mobile-menu-btn');
        const mobileMenu = document.getElementById('mobile-menu');
        
        mobileMenuBtn.addEventListener('click', () => {
            mobileMenu.classList.toggle('hidden');
        });
        
        // 视图切换功能
        const cardViewBtn = document.getElementById('card-view-btn');
        const listViewBtn = document.getElementById('list-view-btn');
        const articleContainer = document.getElementById('article-container');
        
        // 卡片视图切换
        cardViewBtn.addEventListener('click', () => {
            // 更新按钮样式
            cardViewBtn.classList.remove('bg-gray-100', 'text-gray-600');
            cardViewBtn.classList.add('bg-primary', 'text-white');
            
            listViewBtn.classList.remove('bg-primary', 'text-white');
            listViewBtn.classList.add('bg-gray-100', 'text-gray-600');
            
            // 更新文章容器样式
            articleContainer.classList.remove('grid-cols-1');
            articleContainer.classList.add('md:grid-cols-2');
            
            // 移除列表视图特有的类
            document.querySelectorAll('#article-container > article').forEach(article => {
                article.classList.remove('flex', 'flex-col', 'md:flex-row');
                article.querySelector('div:first-child').classList.remove('md:w-1/3');
                article.querySelector('div:last-child').classList.remove('md:w-2/3');
                article.querySelector('img').classList.remove('h-full');
                article.querySelector('img').classList.add('h-48');
            });
        });
        
        // 列表视图切换
        listViewBtn.addEventListener('click', () => {
            // 更新按钮样式
            listViewBtn.classList.remove('bg-gray-100', 'text-gray-600');
            listViewBtn.classList.add('bg-primary', 'text-white');
            
            cardViewBtn.classList.remove('bg-primary', 'text-white');
            cardViewBtn.classList.add('bg-gray-100', 'text-gray-600');
            
            // 更新文章容器样式
            articleContainer.classList.remove('md:grid-cols-2');
            articleContainer.classList.add('grid-cols-1');
            
            // 添加列表视图特有的类
            document.querySelectorAll('#article-container > article').forEach(article => {
                article.classList.add('flex', 'flex-col', 'md:flex-row');
                article.querySelector('div:first-child').classList.add('md:w-1/3');
                article.querySelector('div:last-child').classList.add('md:w-2/3');
                article.querySelector('img').classList.remove('h-48');
                article.querySelector('img').classList.add('h-full');
            });
        });
        
        // 滚动时导航栏效果
        window.addEventListener('scroll', () => {
            const header = document.querySelector('header');
            if (window.scrollY > 50) {
                header.classList.add('shadow');
            } else {
                header.classList.remove('shadow');
            }
        });
    </script>
</body>
</html>
    